# 17-计算1-100的和
a=0
sum=0
while a<100:
    a+=1 # 
    sum+=a
    print(a)
print(sum)

